<!--$embed{"../header.htm"}-->

<!--$if{ space['self']}-->
<div class="searchbar">
<form method="post" action="network.html">
	<input name="key" value="" size="26" class="t_input" type="text">
	<input name="searchsubmit" value="搜索日志" class="submit" type="submit">
	<input type="hidden" name="searchmode" value="1" />
	<!--$if{ view=='me'}-->
	<input type="hidden" name="username" value="${space['username']}" />
	<!--$end-->
	<input type="hidden" name="ac" value="blog" />
</form>
</div>
<h2 class="title"><img src="image/app/blog.gif" />日志</h2>
<div class="tabs_header">
	<ul class="tabs">
		<!--$if{ space[friendnum]}--><li${actives['we']}><a href="space.html?uid=${space['uid']}&do=${do}"><span>好友最新日志</span></a></li><!--$end-->
		<li${actives['me']}><a href="space.html?uid=${space['uid']}&do=${do}&view=me"><span>我的日志</span></a></li>
		<li${actives['trace']}><a href="space.html?uid=${space['uid']}&do=${do}&view=trace"><span>我踩过的日志</span></a></li>
		<li${actives['all']}><a href="space.html?uid=${space['uid']}&do=${do}&view=all"><span>大家的日志</span></a></li>
		<li class="null"><a href="cp.html?ac=blog">发表新日志</a></li>
	</ul>
</div>
<!--$else-->
  <!--${_TPL.put("spacetitle", "日志")}-->
  <!--$embed{"../space_menu.htm"}-->
<!--$end-->


<div id="content" style="width:640px;">
	<!--$if{ count}-->
	<div class="entry_list">
		<ul>
		<!--$for{value:list}-->
			<li>	
				<div class="avatar48"><a href="space.html?uid=${value['uid']}"><img src="<!--${&com.heaven.web.utils.Common.avatar(value['uid'],'small')}-->" alt="${_SN[value['uid']]}" class="avatar" /></a></div>
				<div class="title">
					<a href="cp.html?ac=share&type=blog&id=${value['blogid']}" id="a_share_${value['blogid']}" onclick="ajaxmenu(event, this.id, 99999,'' , -1)" class="a_share">分享</a>
					<h4><a href="space.html?uid=${value['uid']}&do=${do}&id=${value['blogid']}">${value['subject']}</a></h4>
					<div>
				<!--$if{ value['friend']}-->
					<span class="r_option locked gray">
					<a href="${theurl}&friend=$value[friend]" class="gray">
					<!--$if{ value['friend'] == 1}-->仅好友可见
					<!--$elseif{ value['friend'] == 2}-->指定好友可见
					<!--$elseif{ value['friend'] == 3}-->仅自己可见
					<!--$elseif{ value['friend'] == 4}-->凭密码可见<!--$end-->
					</a>
					</span>
				<!--$end-->
					<a href="space.html?uid=${value['uid']}">${_SN[value['uid']]}</a> <span class="time"><!--${&com.heaven.web.utils.Common.date('yyyy-MM-dd HH:mm', value['dateline'] ,1)}--></span>
					</div>
				</div>
				<div class="detail image_right l_text s_clear" id="blog_article_${value['blogid']}">
					<!--$if{ value[pic]}--><p class="image"><a href="space.html?uid=${value['uid']}&do=blog&id=${value['blogid']}"><img src="${value['pic']}" alt="${value['subject']}" /></a></p><!--$end-->
					${value['message']}
				</div>
				<div class="status">
					<!--$if{ value['classname']}-->分类: <a href="space.html?uid=${value['uid']}&do=blog&classid=${value['classid']}">${value['classname']}</a><span class="pipe">|</span><!--$end-->
					<!--$if{ value['viewnum']}--><a href="space.html?uid=${value['uid']}&do=${do}&id=${value['blogid']}">${value['viewnum']} 次阅读</a><span class="pipe">|</span><!--$end-->
					<!--$if{ value['replynum']}--><a href="space.html?uid=${value['uid']}&do=${do}&id=${value['blogid']}#comment">${value['replynum']} 个评论</a><!--$else-->没有评论<!--$end-->
				</div>
			</li>
		<!--$end-->
			
		<!--$if{ pricount}-->
		<li>
			<div class="title">本页有 ${pricount} 篇日志因作者的隐私设置而隐藏</div>
		</li>
		<!--$end-->
	
		</ul>
	</div>
	
	<div class="page">${multi}</div>
	
	<!--$else-->
	<div class="c_form">还没有相关的日志。</div>
	<!--$end-->

</div>

<div id="sidebar" style="width:150px;">
	
	<!--$if{ view=='me'}-->
	<!--$if{ classarr}-->
	<div class="cat">
	<h3>日志分类</h3>
	<ul class="post_list line_list">
		<li<!--$if{ !classid}--> class="current"<!--$end-->><a href="space.html?uid=${space['uid']}&do=blog&view=me">全部日志</a></li>
		<!--$for{class:classarr} $set{classname = class.classname} $set{loopclassid = class.classid}-->
		<li<!--$if{ classid==loopclassid}--> class="current"<!--$end-->>
			<a href="space.html?uid=${space['uid']}&do=blog&classid=${loopclassid}">${classname}</a>
			<!--$if{ space['self']}-->
				<a href="cp.html?ac=class&op=edit&classid=${loopclassid}" id="c_edit_${loopclassid}" onclick="ajaxmenu(event, this.id, 99999)" class="c_edit">编辑</a>
				<a href="cp.html?ac=class&op=delete&classid=${loopclassid}" id="c_delete_${loopclassid}" onclick="ajaxmenu(event, this.id, 99999)" class="c_delete">删除</a>
			<!--$end-->
		</li>
		<!--$end-->
	</ul>
	</div>
	<!--$end-->
	<!--$elseif{ userlist}-->
	<div class="cat">
	<h3>按作者查看</h3>
	<ul class="post_list line_list">
		<!--$for{entry:userlist}-->
		<li><a href="space.html?uid=${entry.key}&do=blog&view=me">${_SN[entry.key]}</a></li>
		<!--$end-->
	</ul>
	</div>
	<!--$end-->
	
</div>
	
<!--$embed{"../footer.htm"}-->